package org.pettyfox.pfpay.utils;

import java.lang.reflect.Field;

public class ClazzUtil {
    public static boolean isField(Class clazz,String field){


        Field[] fields=clazz.getDeclaredFields();

        boolean b=false;
        for (int i = 0; i < fields.length; i++) {
            if(fields[i].getName().equals(field))
            {
                return true;
            }
        }
        return false;
    }
}
